package com.kk.demo.java8.stream.base01;

/**
 * 进行并行计算的试验
 * @author liujun
 * @date 2016年8月28日
 * @verion 0.0.1
 */
public class Parson {

    public Parson() {
    }

    /**
     * 名称信息
     */
    private String name;

    /**
     * 值 信息
     */
    private int value;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public Parson(String name, int value) {
        super();
        this.name = name;
        this.value = value;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("Parson [name=");
        builder.append(name);
        builder.append(", value=");
        builder.append(value);
        builder.append("]");
        return builder.toString();
    }

}
